package com.example.mybatis.my.shop.mapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.example.mybatis.my.shop.entity.TbUser;

import java.util.List;
import java.util.Map;

public interface TbUserMapper {

    TbUser findById(Long id);

    List<TbUser> selectTbUsers();

    int insertUser(TbUser user);

    Boolean deleteById(Long id);

    List<TbUser> findAll();

    int updateUser(TbUser user);

    List<TbUser> searchByTbUser(Map<String,String> map);

    TbUser selectByEmail(@Param("email") String email);

    int deleteAllById(String[] id);


}
